<div class="layuimini-container">
    <div class="layuimini-main">
        <form id="app-form" class="layui-form layuimini-form">

            <div class="layui-form-item">
                <label class="layui-form-label">名称</label>
                <div class="layui-input-block">
                    <input autocomplete="off" type="text" name="name" class="layui-input" lay-reqtext="请输入名称" placeholder="请输入名称" value="{$row.name}">
                </div>
            </div>


            <!-- 讲师 -->
            <div class="layui-form-item">
                <label class="layui-form-label required">讲师</label>
                <div class="layui-input-block">
                    <select name="lecturer" lay-filter="lecturer">
                        {foreach $lecturers as $vo}
                        <option value="{$vo.id}" {if $row.lecturer==$vo.id}selected=""{/if}>{$vo.name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>

            <!-- 房间号 -->
            <div class="layui-form-item">
                <label class="layui-form-label required">房间号</label>
                <div class="layui-input-block">
                    <select name="roomid" lay-filter="roomid">
                        {foreach $roomids as $vo}
                        <option value="{$vo.roomid}" {if $row.roomid==$vo.roomid}selected=""{/if}>{$vo.roomid}</option>
                        {/foreach}
                    </select>
                </div>
            </div>

            <div class="hr-line"></div>
            <div class="layui-form-item text-center">
                <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
                <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
            </div>
        </form>
    </div>
</div>